package com.myfoon.utils;

import com.myfoon.model.entity.result.EventOfFriend;

import java.math.BigInteger;

import java.sql.Timestamp;

import java.util.ArrayList;
import java.util.List;

public class ResultConverter {
    public ResultConverter() {
    }
    
    public List<EventOfFriend> converToEventOfFriend(List data) {
        List<EventOfFriend> convertedList = new ArrayList<EventOfFriend>();
                /*
        if (data != null || data.size() > 0) {            
            EventOfFriend current;
            for (int i = 0; i < data.size(); i++) {
                Object[] o = (Object[])(data.get(i));                    
                current = new EventOfFriend();
                current.setId( (BigInteger)o[0] );
                current.setOwner( (BigInteger)o[1] );
                current.setEventMessage( (String)o[2] );
                current.setEventDate( (Timestamp)o[3] );
                current.setEventPhotoCount( (Integer)o[4] );
                current.setEventVideoCount( (Integer)o[5] );
                current.setEventCreated( (Timestamp)o[6] );
                current.setOwnerPhotoSmall( (String)o[7] );
                current.setOwnerFullname( (String)o[8] );
                current.setLocationId( (BigInteger)o[9] );            
                current.setLocationName( (String)o[10] );
                current.setLocationCity( (String)o[11] );    
                
                convertedList.add(current);
            }                                
        }
        */
        return convertedList;
    }
}
